//
//  XYImageScrollViewModel.m
//  MuBao
//
//  Created by 找汽配 on 2018/1/26.
//  Copyright © 2018年 Stardust. All rights reserved.
//

#import "XYImageScrollViewModel.h"

@implementation XYImageScrollViewModel

+ (instancetype)model {
    XYImageScrollViewModel * model = [[self alloc] init];
    return model;
}

- (void)reloadImage {
    if (self.action && [self.action respondsToSelector:@selector(imageScrollViewModelReloadImage:)]) {
        [self.action imageScrollViewModelReloadImage:self];
    }
}

- (void)modelDidUpdate {
    if (self.delegate && [self.delegate respondsToSelector:@selector(imageScrollViewModelDidUpdate)]) {
        [self.delegate imageScrollViewModelDidUpdate];
    }
}

@end
